<%@ page contentType="text/html; charset=UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<html>
<head>
    <link href="<s:url value="resources/css/main.css"/>" rel="stylesheet" type="text/css"/>
</head>
<body>
<center>
<table align=center>
<tr><td><h1> <s:if test="customer==null || customer.id == null">  <s:text name="label.customer.add"/> </s:if><s:else><s:text name="label.customer.edit"/></s:else></h1></td></tr>
</table>
	<table width=600 align=center>
	    <tr><td><a href="getAllCustomers.html">Click Here to View Employees</a></td>
	     </tr>
	</table>	 
	 <table>
		<tr><td align="left" style="font:bold;color:red"> 
	            <s:fielderror/> 	 	
                <s:actionerror/>
                <s:actionmessage/></td></tr>
     </table>		 	
    <s:form>
     <table align="center" class="borderAll">
     	    <s:hidden name="customer.id" />

         <tr><td class="tdLabel"><s:text name="label.firstName"/></td>
         	        <td><s:textfield name="customer.firstName" size="30"/></td>
         </tr>
        <tr>
            <td class="tdLabel"><s:text name="label.lastName"/></td>
                            <td><s:textfield name="customer.lastName" size="30"/></td>
        </tr>
    </table>
    		 <br/>
    <table> 
    	     <tr>
    		    <td>
    		      <s:if test="customer==null || customer.id == null">
                                                           <s:submit action="customerInsert" key="button.label.submit" cssClass="butStnd"/>
                                                        </s:if>
                                                        <s:else>
                                     <s:submit action="customerUpdate" key="button.label.submit" cssClass="butStnd"/>
                                                        </s:else>


    		    </td>
    	        <td><s:reset key="button.label.cancel" cssClass="butStnd" action="customerInsertOrUpdate" /></td>
    		 <tr>
    </table> 		  		 
    	</s:form>
</center>		
</body>
</html>